import type { AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';

export interface requestIntercepors {
	// 请求拦截
	requestIntercepor?: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
	requestInterceporCatch?: (err: any) => any;
	// 响应拦截
	responseIntercepor?: (config: AxiosResponse) => AxiosResponse;
	responseInterceporCatch?: (err: any) => any;
}

export interface requestConfig extends AxiosRequestConfig {
	interceptors?: requestIntercepors;
}
